# readme 重写
class Animal():
    def __init__(self, name, food):
        self.name = name
        self.food = food

    def eat(self):
        print("%s喜欢吃%s"%(self.name, self.food))

    def shout(self):
        print(self.name, "汪汪叫")


class Dog(Animal):
    def __init__(self, name, food):
        super().__init__(name, food)


class Cat(Animal):
    def __init__(self, name, food):
        super().__init__(name, food)

    def shout(self):
        print(self.name, "喵喵叫")


dog1 = Dog("小狗", "骨头")
dog1.shout()
dog1.eat()

cat1 = Cat("小猫", "小鱼")
cat1.shout()
cat1.eat()
